.class Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;
.super Ljava/lang/Object;
.source "BurstlyBaseAd.java"

# interfaces
.implements Lcom/burstly/lib/ui/IBurstlyAdListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;


# direct methods
.method constructor <init>(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;)V
    .locals 0
    .parameter

    .prologue
    .line 122
    iput-object p1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public adNetworkDismissFullScreen(Ljava/lang/String;)V
    .locals 4
    .parameter "network"

    .prologue
    .line 221
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    new-instance v1, Lcom/burstly/lib/conveniencelayer/events/AdDismissFullscreenEvent;

    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v2, v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mLastShow:Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;

    const/4 v3, 0x0

    invoke-direct {v1, v2, v3}, Lcom/burstly/lib/conveniencelayer/events/AdDismissFullscreenEvent;-><init>(Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;Z)V

    invoke-virtual {v0, v1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onDismissFullscreen(Lcom/burstly/lib/conveniencelayer/events/AdDismissFullscreenEvent;)V

    .line 222
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    const/4 v1, 0x0

    iput-object v1, v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mLastShow:Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;

    .line 223
    return-void
.end method

.method public adNetworkPresentFullScreen(Ljava/lang/String;)V
    .locals 3
    .parameter "network"

    .prologue
    .line 232
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    new-instance v1, Lcom/burstly/lib/conveniencelayer/events/AdPresentFullscreenEvent;

    const/4 v2, 0x0

    invoke-direct {v1, v2}, Lcom/burstly/lib/conveniencelayer/events/AdPresentFullscreenEvent;-><init>(Z)V

    invoke-virtual {v0, v1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onPresentFullscreen(Lcom/burstly/lib/conveniencelayer/events/AdPresentFullscreenEvent;)V

    .line 233
    return-void
.end method

.method public adNetworkWasClicked(Ljava/lang/String;)V
    .locals 2
    .parameter "network"

    .prologue
    .line 191
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    new-instance v1, Lcom/burstly/lib/conveniencelayer/events/AdClickEvent;

    invoke-direct {v1, p1}, Lcom/burstly/lib/conveniencelayer/events/AdClickEvent;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onClick(Lcom/burstly/lib/conveniencelayer/events/AdClickEvent;)V

    .line 192
    return-void
.end method

.method public attemptingToLoad(Ljava/lang/String;)V
    .locals 1
    .parameter "network"

    .prologue
    .line 181
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->tryToLoadCreative(Ljava/lang/String;)V

    .line 182
    return-void
.end method

.method public didLoad(Ljava/lang/String;Z)V
    .locals 5
    .parameter "network"
    .parameter "isInterstitial"

    .prologue
    const/4 v1, 0x1

    .line 142
    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v2, v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mLastShow:Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;

    if-eqz v2, :cond_1

    move v0, v1

    .line 143
    .local v0, isRefresh:Z
    :goto_0
    if-eqz v0, :cond_0

    .line 144
    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    new-instance v3, Lcom/burstly/lib/conveniencelayer/events/AdHideEvent;

    iget-object v4, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v4, v4, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mLastShow:Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;

    invoke-direct {v3, v1, v4}, Lcom/burstly/lib/conveniencelayer/events/AdHideEvent;-><init>(ZLcom/burstly/lib/conveniencelayer/events/AdShowEvent;)V

    invoke-virtual {v2, v3}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onHide(Lcom/burstly/lib/conveniencelayer/events/AdHideEvent;)V

    .line 146
    :cond_0
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    new-instance v2, Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;

    iget-object v3, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v3, v3, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mFailedCreativesList:Ljava/util/ArrayList;

    invoke-direct {v2, p2, p1, v3, v0}, Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;-><init>(ZLjava/lang/String;Ljava/util/ArrayList;Z)V

    iput-object v2, v1, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mLastShow:Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;

    .line 147
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v2, v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mLastShow:Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;

    invoke-virtual {v1, v2}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onShow(Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;)V

    .line 148
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v1, v1, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mAdSize:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-virtual {v1}, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->isInterstitial()Z

    move-result v1

    if-nez v1, :cond_2

    if-eqz p2, :cond_2

    .line 149
    new-instance v1, Ljava/lang/IllegalStateException;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "You are using interstitial ads in "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    invoke-virtual {v3}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " banner view"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v1

    .line 142
    .end local v0           #isRefresh:Z
    :cond_1
    const/4 v0, 0x0

    goto :goto_0

    .line 150
    .restart local v0       #isRefresh:Z
    :cond_2
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v1, v1, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mAdSize:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-virtual {v1}, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->isInterstitial()Z

    move-result v1

    if-eqz v1, :cond_3

    if-nez p2, :cond_3

    .line 151
    new-instance v1, Ljava/lang/IllegalStateException;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "You are using banner ads in "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    invoke-virtual {v3}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " interstitial view"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v1

    .line 153
    :cond_3
    return-void
.end method

.method public didPrecacheAd(Ljava/lang/String;)V
    .locals 3
    .parameter "network"

    .prologue
    .line 162
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    new-instance v1, Lcom/burstly/lib/conveniencelayer/events/AdCacheEvent;

    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v2, v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mFailedCreativesList:Ljava/util/ArrayList;

    invoke-direct {v1, p1, v2}, Lcom/burstly/lib/conveniencelayer/events/AdCacheEvent;-><init>(Ljava/lang/String;Ljava/util/ArrayList;)V

    iput-object v1, v0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mLastCache:Lcom/burstly/lib/conveniencelayer/events/AdCacheEvent;

    .line 163
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v1, v1, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mLastCache:Lcom/burstly/lib/conveniencelayer/events/AdCacheEvent;

    invoke-virtual {v0, v1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onCache(Lcom/burstly/lib/conveniencelayer/events/AdCacheEvent;)V

    .line 164
    return-void
.end method

.method public failedToDisplayAds()V
    .locals 5

    .prologue
    .line 210
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v1, v1, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Retrieving:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    if-ne v1, v2, :cond_0

    const/4 v0, 0x1

    .line 211
    .local v0, precaching:Z
    :goto_0
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    new-instance v2, Lcom/burstly/lib/conveniencelayer/events/AdFailEvent;

    iget-object v3, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v3, v3, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mFailedCreativesList:Ljava/util/ArrayList;

    iget-object v4, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    #getter for: Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mBurstlyView:Lcom/burstly/lib/ui/BurstlyView;
    invoke-static {v4}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->access$000(Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;)Lcom/burstly/lib/ui/BurstlyView;

    move-result-object v4

    invoke-direct {v2, v3, v4, v0}, Lcom/burstly/lib/conveniencelayer/events/AdFailEvent;-><init>(Ljava/util/ArrayList;Lcom/burstly/lib/ui/BurstlyView;Z)V

    invoke-virtual {v1, v2}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onFail(Lcom/burstly/lib/conveniencelayer/events/AdFailEvent;)V

    .line 212
    return-void

    .line 210
    .end local v0           #precaching:Z
    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public failedToLoad(Ljava/lang/String;)V
    .locals 1
    .parameter "network"

    .prologue
    .line 130
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->singleCreativeFailed(Ljava/lang/String;)V

    .line 131
    return-void
.end method

.method public finishRequestToServer()V
    .locals 0

    .prologue
    .line 258
    return-void
.end method

.method public onCollapse()V
    .locals 4

    .prologue
    .line 250
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    new-instance v1, Lcom/burstly/lib/conveniencelayer/events/AdDismissFullscreenEvent;

    iget-object v2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v2, v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mLastShow:Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;

    const/4 v3, 0x1

    invoke-direct {v1, v2, v3}, Lcom/burstly/lib/conveniencelayer/events/AdDismissFullscreenEvent;-><init>(Lcom/burstly/lib/conveniencelayer/events/AdShowEvent;Z)V

    invoke-virtual {v0, v1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onDismissFullscreen(Lcom/burstly/lib/conveniencelayer/events/AdDismissFullscreenEvent;)V

    .line 251
    return-void
.end method

.method public onExpand(Z)V
    .locals 3
    .parameter "isFullscreen"

    .prologue
    .line 242
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    new-instance v1, Lcom/burstly/lib/conveniencelayer/events/AdPresentFullscreenEvent;

    const/4 v2, 0x1

    invoke-direct {v1, v2}, Lcom/burstly/lib/conveniencelayer/events/AdPresentFullscreenEvent;-><init>(Z)V

    invoke-virtual {v0, v1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onPresentFullscreen(Lcom/burstly/lib/conveniencelayer/events/AdPresentFullscreenEvent;)V

    .line 243
    return-void
.end method

.method public onHide()V
    .locals 0

    .prologue
    .line 266
    return-void
.end method

.method public onShow()V
    .locals 0

    .prologue
    .line 270
    return-void
.end method

.method public requestThrottled(I)V
    .locals 3
    .parameter "timeInMsec"

    .prologue
    .line 201
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    iget-object v1, v1, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->mCachingState:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;->Retrieving:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$CachingState;

    if-ne v1, v2, :cond_0

    const/4 v0, 0x1

    .line 202
    .local v0, precaching:Z
    :goto_0
    iget-object v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    new-instance v2, Lcom/burstly/lib/conveniencelayer/events/AdFailEvent;

    invoke-direct {v2, p1, v0}, Lcom/burstly/lib/conveniencelayer/events/AdFailEvent;-><init>(IZ)V

    invoke-virtual {v1, v2}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->onFail(Lcom/burstly/lib/conveniencelayer/events/AdFailEvent;)V

    .line 203
    return-void

    .line 201
    .end local v0           #precaching:Z
    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public startRequestToServer()V
    .locals 1

    .prologue
    .line 171
    iget-object v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd$1;->this$0:Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;

    invoke-virtual {v0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;->requestStarted()V

    .line 172
    return-void
.end method

.method public viewDidChangeSize(Lcom/burstly/lib/ui/AdSize;Lcom/burstly/lib/ui/AdSize;)V
    .locals 0
    .parameter "newSize"
    .parameter "oldSize"

    .prologue
    .line 262
    return-void
.end method
